package com.ligotop.admin.system.service;

import com.baomidou.mybatisplus.service.IService;
import com.ligotop.admin.system.entity.Menu;
import com.ligotop.core.exceptions.BusinessException;

import java.util.List;

/**
 * <p>
 * 系统菜单 服务类
 * </p>
 *
 * @author yudm
 * @since 2017-09-29
 */
public interface MenuService extends IService<Menu> {

    /**
     * 根据用户id查询用户的菜单权限
     * @param userId 登录用户的ID
     * @return 菜单列表
     * @throws BusinessException 异常
     */
    List<Menu> loadMenusByUserId(Integer userId) throws BusinessException;
	
}
